package hospital.cmn;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

/**
 * @author
 * @description:
 * @create 2022/9/20-17:12
 */
public class easyListener extends AnalysisEventListener<userData> {
    //一行一行读取数据，从第二行开始
    @Override
    public void invoke(userData userData, AnalysisContext analysisContext) {
        System.out.println(userData);
    }
    //获取表头信息
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println("表头信息"+headMap);
    }
    //读取之后执行
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
